package com.launch.wlfw.service;

import com.github.pagehelper.PageInfo;
import com.launch.wlfw.pojo.ReaderInfo;

import java.util.List;

/**
 * @author liuwei
 */
public interface ReaderInfoService {

    /**
     * 根据用户名和密码查询用户信息
     */
    ReaderInfo queryUserInfoByNameAndPassword(String username,String password);

    PageInfo<ReaderInfo> findReaderList(ReaderInfo readerInfo,Integer pageNum,Integer pageSize);

    Integer insertReaderList(ReaderInfo readerInfo);

    Integer updateReaderList(ReaderInfo readerInfo);


    Integer deleteReaderList(List<String> list);

    ReaderInfo findReaderById(Integer id);

    Integer updateReaderPassword(Integer id, String oldPwd, String newPwd);
}
